From ca3d62ccf9c8d7253720aa244d42aa47824497f5 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Sat, 7 May 2016 13:58:48 -0600 Subject: [PATCH] delete qt4 support in configure. --- .travis.yml | 3 --- configure | 17 ++++++++++------- configure.in | 11 +++++++---- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index e7af5d8c4..74935accf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,6 @@ language: cpp compiler: - gcc - clang -before_install: -# as a bit of a kludge remove qt4 so our configure finds qt5. - - sudo apt-get -y --purge remove qt4-qmake qt4-linguist-tools addons: apt: packages: diff --git a/configure b/configure index 730315af9..ad4d502b7 100755 --- a/configure +++ b/configure @@ -4756,8 +4756,11 @@ esac # On RHEL/OEL/SL/CENTOS/FEDORA qmake is from Qt3, and qmake-qt4 is from Qt4. # If qmake-qt4 isn't found look for the standard name qmake and assume it is # from a useful version Qt. +# On Ubuntu qmake-qt4 exists, but qmake-qt5 does not. +# If we select qmake-qt4 this will defeat qtchooser. +# we no longer support qt4. if test -n "$ac_tool_prefix"; then - for ac_prog in qmake-qt5 qmake-qt4 qmake + for ac_prog in qmake-qt5 qmake do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 @@ -4801,7 +4804,7 @@ fi fi if test -z "$QMAKE"; then ac_ct_QMAKE=$QMAKE - for ac_prog in qmake-qt5 qmake-qt4 qmake + for ac_prog in qmake-qt5 qmake do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -4857,7 +4860,7 @@ esac fi if test -n "$ac_tool_prefix"; then - for ac_prog in lupdate-qt5 lupdate-qt4 lupdate + for ac_prog in lupdate-qt5 lupdate do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 @@ -4901,7 +4904,7 @@ fi fi if test -z "$LUPDATE"; then ac_ct_LUPDATE=$LUPDATE - for ac_prog in lupdate-qt5 lupdate-qt4 lupdate + for ac_prog in lupdate-qt5 lupdate do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -4957,7 +4960,7 @@ esac fi if test -n "$ac_tool_prefix"; then - for ac_prog in lrelease-qt5 lrelease-qt4 lrelease + for ac_prog in lrelease-qt5 lrelease do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 @@ -5001,7 +5004,7 @@ fi fi if test -z "$LRELEASE"; then ac_ct_LRELEASE=$LRELEASE - for ac_prog in lrelease-qt5 lrelease-qt4 lrelease + for ac_prog in lrelease-qt5 lrelease do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -5058,7 +5061,7 @@ fi if test "$QMAKE" = no ; then - as_fn_error $? "Qt4 or Qt5 is required, but neither was found" "$LINENO" 5; + as_fn_error $? "Qt5 is required, but neither was found" "$LINENO" 5; fi # guess the name of the Qt Core library. diff --git a/configure.in b/configure.in index fad9cc923..88a3eed85 100644 --- a/configure.in +++ b/configure.in @@ -159,12 +159,15 @@ AC_SUBST(RC) # On RHEL/OEL/SL/CENTOS/FEDORA qmake is from Qt3, and qmake-qt4 is from Qt4. # If qmake-qt4 isn't found look for the standard name qmake and assume it is # from a useful version Qt. -AC_CHECK_TOOLS(QMAKE, [qmake-qt5 qmake-qt4 qmake], "no") -AC_CHECK_TOOLS(LUPDATE, [lupdate-qt5 lupdate-qt4 lupdate]) -AC_CHECK_TOOLS(LRELEASE, [lrelease-qt5 lrelease-qt4 lrelease]) +# On Ubuntu qmake-qt4 exists, but qmake-qt5 does not. +# If we select qmake-qt4 this will defeat qtchooser. +# we no longer support qt4. +AC_CHECK_TOOLS(QMAKE, [qmake-qt5 qmake], "no") +AC_CHECK_TOOLS(LUPDATE, [lupdate-qt5 lupdate]) +AC_CHECK_TOOLS(LRELEASE, [lrelease-qt5 lrelease]) if test "$QMAKE" = no ; then - AC_MSG_ERROR([Qt4 or Qt5 is required, but neither was found]); + AC_MSG_ERROR([Qt5 is required, but neither was found]); fi # guess the name of the Qt Core library. -- 2.30.2